
import { useLoginStore } from '@/store/modules/login.js'

export function usePermission(permissionsStr) {
  const store = useLoginStore()
  const permissions = store.permissions

  return permissions.some((item) => item === permissionsStr)
}
